home *** CD-ROM | disk | FTP | other *** search
-
- In article <4d1bo9$rh6@inferno.mpx.com.au> nring@jolt.mpx.com.au (Nick Ring) writes:
- > Roland Bengtsson (roland.bengtsson@mbox3.swipnet.se) wrote:
- > : I wanted to make som ASCII-tables in Arexx, but I can't find any
- > : function similar to printf() C. Any advice?
- >
- > : It maybe look like this:
- >
- > : 1 One 540 230 0.08
- > : 2 Two -1942 2621
- > : 3 Three 80 210 0.00
- > : 4 Four 13522 1522 0.06
- >
- > To my knowledge, there is function in ARexx to do this. The only way for
- > you to get this result, is to do it yourself. To make it worse, ARexx is
- > dataless, which means that %f (float in C?) doesn't mean as they are all
- > treated as strings of bytes (%s would most likely be the closest in C).
- >
- Use of right() and left() should do for column alignment, however
- limiting floats to 2 decimal places may be more difficult.
-
- say right(index,3) || left(name,10) || right(num1,8) || right(num2,8)...
-
- --
- > ============================================================ <
- > wulfraed@netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
- > D.Bieber@GEnie.com | FurryMUCK and FurToonia <
- > ============================================================ <
- > PGP key: Finger wulfraed@netcom.com <
- > Home Page: ftp://ftp.netcom.com/pub/wu/wulfraed/wulfraed.htm <
-